/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mad.bikepony.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Agent}.
 * </p>
 *
 * @author    nicola
 * @see       Agent
 * @generated
 */
public class AgentWrapper implements Agent, ModelWrapper<Agent> {
	public AgentWrapper(Agent agent) {
		_agent = agent;
	}

	public Class<?> getModelClass() {
		return Agent.class;
	}

	public String getModelClassName() {
		return Agent.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("agentId", getAgentId());
		attributes.put("password", getPassword());
		attributes.put("name", getName());
		attributes.put("surname", getSurname());
		attributes.put("mobilePhone", getMobilePhone());
		attributes.put("status", getStatus());
		attributes.put("lastPos_latitude", getLastPos_latitude());
		attributes.put("lastPos_longitude", getLastPos_longitude());
		attributes.put("lastUpdate", getLastUpdate());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long agentId = (Long)attributes.get("agentId");

		if (agentId != null) {
			setAgentId(agentId);
		}

		String password = (String)attributes.get("password");

		if (password != null) {
			setPassword(password);
		}

		String name = (String)attributes.get("name");

		if (name != null) {
			setName(name);
		}

		String surname = (String)attributes.get("surname");

		if (surname != null) {
			setSurname(surname);
		}

		String mobilePhone = (String)attributes.get("mobilePhone");

		if (mobilePhone != null) {
			setMobilePhone(mobilePhone);
		}

		Integer status = (Integer)attributes.get("status");

		if (status != null) {
			setStatus(status);
		}

		Double lastPos_latitude = (Double)attributes.get("lastPos_latitude");

		if (lastPos_latitude != null) {
			setLastPos_latitude(lastPos_latitude);
		}

		Double lastPos_longitude = (Double)attributes.get("lastPos_longitude");

		if (lastPos_longitude != null) {
			setLastPos_longitude(lastPos_longitude);
		}

		Long lastUpdate = (Long)attributes.get("lastUpdate");

		if (lastUpdate != null) {
			setLastUpdate(lastUpdate);
		}
	}

	/**
	* Returns the primary key of this agent.
	*
	* @return the primary key of this agent
	*/
	public long getPrimaryKey() {
		return _agent.getPrimaryKey();
	}

	/**
	* Sets the primary key of this agent.
	*
	* @param primaryKey the primary key of this agent
	*/
	public void setPrimaryKey(long primaryKey) {
		_agent.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the agent ID of this agent.
	*
	* @return the agent ID of this agent
	*/
	public long getAgentId() {
		return _agent.getAgentId();
	}

	/**
	* Sets the agent ID of this agent.
	*
	* @param agentId the agent ID of this agent
	*/
	public void setAgentId(long agentId) {
		_agent.setAgentId(agentId);
	}

	/**
	* Returns the password of this agent.
	*
	* @return the password of this agent
	*/
	public java.lang.String getPassword() {
		return _agent.getPassword();
	}

	/**
	* Sets the password of this agent.
	*
	* @param password the password of this agent
	*/
	public void setPassword(java.lang.String password) {
		_agent.setPassword(password);
	}

	/**
	* Returns the name of this agent.
	*
	* @return the name of this agent
	*/
	public java.lang.String getName() {
		return _agent.getName();
	}

	/**
	* Sets the name of this agent.
	*
	* @param name the name of this agent
	*/
	public void setName(java.lang.String name) {
		_agent.setName(name);
	}

	/**
	* Returns the surname of this agent.
	*
	* @return the surname of this agent
	*/
	public java.lang.String getSurname() {
		return _agent.getSurname();
	}

	/**
	* Sets the surname of this agent.
	*
	* @param surname the surname of this agent
	*/
	public void setSurname(java.lang.String surname) {
		_agent.setSurname(surname);
	}

	/**
	* Returns the mobile phone of this agent.
	*
	* @return the mobile phone of this agent
	*/
	public java.lang.String getMobilePhone() {
		return _agent.getMobilePhone();
	}

	/**
	* Sets the mobile phone of this agent.
	*
	* @param mobilePhone the mobile phone of this agent
	*/
	public void setMobilePhone(java.lang.String mobilePhone) {
		_agent.setMobilePhone(mobilePhone);
	}

	/**
	* Returns the status of this agent.
	*
	* @return the status of this agent
	*/
	public int getStatus() {
		return _agent.getStatus();
	}

	/**
	* Sets the status of this agent.
	*
	* @param status the status of this agent
	*/
	public void setStatus(int status) {
		_agent.setStatus(status);
	}

	/**
	* Returns the last pos_latitude of this agent.
	*
	* @return the last pos_latitude of this agent
	*/
	public double getLastPos_latitude() {
		return _agent.getLastPos_latitude();
	}

	/**
	* Sets the last pos_latitude of this agent.
	*
	* @param lastPos_latitude the last pos_latitude of this agent
	*/
	public void setLastPos_latitude(double lastPos_latitude) {
		_agent.setLastPos_latitude(lastPos_latitude);
	}

	/**
	* Returns the last pos_longitude of this agent.
	*
	* @return the last pos_longitude of this agent
	*/
	public double getLastPos_longitude() {
		return _agent.getLastPos_longitude();
	}

	/**
	* Sets the last pos_longitude of this agent.
	*
	* @param lastPos_longitude the last pos_longitude of this agent
	*/
	public void setLastPos_longitude(double lastPos_longitude) {
		_agent.setLastPos_longitude(lastPos_longitude);
	}

	/**
	* Returns the last update of this agent.
	*
	* @return the last update of this agent
	*/
	public long getLastUpdate() {
		return _agent.getLastUpdate();
	}

	/**
	* Sets the last update of this agent.
	*
	* @param lastUpdate the last update of this agent
	*/
	public void setLastUpdate(long lastUpdate) {
		_agent.setLastUpdate(lastUpdate);
	}

	public boolean isNew() {
		return _agent.isNew();
	}

	public void setNew(boolean n) {
		_agent.setNew(n);
	}

	public boolean isCachedModel() {
		return _agent.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_agent.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _agent.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _agent.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_agent.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _agent.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_agent.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new AgentWrapper((Agent)_agent.clone());
	}

	public int compareTo(com.mad.bikepony.model.Agent agent) {
		return _agent.compareTo(agent);
	}

	@Override
	public int hashCode() {
		return _agent.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.mad.bikepony.model.Agent> toCacheModel() {
		return _agent.toCacheModel();
	}

	public com.mad.bikepony.model.Agent toEscapedModel() {
		return new AgentWrapper(_agent.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _agent.toString();
	}

	public java.lang.String toXmlString() {
		return _agent.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_agent.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Agent getWrappedAgent() {
		return _agent;
	}

	public Agent getWrappedModel() {
		return _agent;
	}

	public void resetOriginalValues() {
		_agent.resetOriginalValues();
	}

	private Agent _agent;
}